package com.hpeu_01.day0107.homework;

public class ClassB implements InterfaceA{
    @Override
    public int method(int n) {
        int sum = 1;
        //计算n的阶乘（n!）
        for (int i=1;i<=n;i++){
            sum*=i;
        }
        return sum;
    }
}
